//
//  SceneDeviceModel.h
//  wAudioShare
//
//  Created by Anson on 14-11-7.
//  Copyright (c) 2014年 赵帅. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef  NS_ENUM(NSInteger, SceneDeviceType) {
    //!开关
    SceneDeviceTypeSwitch = 1,
    
    //!调光器
    SceneDeviceTypeDimmer = 2,
    
    //!触发器
    SceneDeviceTypeBinarySensor = 3,
    SceneDeviceTypeMultilevelSensor = 4,
    
    //!电表
    SceneDeviceTypePowerMeter = 5,
    
    //!空调
    SceneDeviceTypeThermostat = 6,
    /*
     *门锁
     */
    SceneDeviceTypeDoorLock = 7,
    
    //!窗帘
    SceneDeviceTypeMotor = 8,
    
    SceneDeviceTypeThermostatMode = 60001,
    SceneDeviceTypeThermostatTemperature = 60002,
    
    SceneDeviceTypeInvalid = -1
};

@interface SceneDeviceModel : NSObject

@property (copy) NSString *deviceId;
@property (assign) SceneDeviceType deviceType;
@property (copy) NSString *title;
@property (assign) BOOL isOn;
@property (assign) NSInteger percent;
@property (copy) NSString *mode;
@property (assign) NSInteger thermostatTemperature;

//+ (SceneDeviceType)getTypeFromVal:(NSInteger)val;

@end
